<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>
<body>
  <div id="example">

  </div>

  <script src="./build/react.js"> </script>
  <script src="./build/react-dom.js"> </script>
   <script src="./build/browser.min.js"> </script>
   <script type="text/babel">



   var MyComponent = React.createClass({

  getInitialState: function() {
    return {liked: false};
  },
  handleClick: function(event) {
    console.log(event)

    this.setState({liked: !this.state.liked});
    console.log(this.state.liked)
  },
  render: function() {
    return (
      <div>
        <span>i {this.state.liked?'like':'don`t like'} you</span>
        <input type="button" value="Focus the text input" onClick={this.handleClick} />
      </div>
    );
  }
    })

    ReactDOM.render(<MyComponent />,document.getElementById('example'))


   </script>
</body>
</html>